//
//  Mru.h
//  sfdcFuse
//
//  Created by Simon Fell on 2/20/07.
//  Copyright 2007 Simon Fell. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface MruItem : NSObject {
	id				item;
	NSDate			*lastAccess;
	NSTimeInterval	expires;
}
- (id)initWithItem:(id)item;
- (id)item;
- (BOOL)isExpired;
- (void)resetExpiry;
@end

@interface Mru : NSObject {
	NSMutableDictionary *items;
}

- (MruItem *)mruItemForKey:(NSString *)key;
- (void)setObject:(id)obj forKey:(NSString *)key;
- (void)removeObjectForKey:(NSString *)key;
@end
